import 'package:json_annotation/json_annotation.dart';
import 'dart:convert';

part 'sendcode_entity.g.dart';

/// 发送验证码响应实体
@JsonSerializable()
class SendcodeEntity {
  /// 响应消息
  @JsonKey(name: 'msg')
  String? msg;
  
  /// 响应状态码
  @JsonKey(name: 'code')
  int? code;
  
  /// 唯一标识符
  @JsonKey(name: 'uuid')
  String? uuid;

  SendcodeEntity({
    this.msg,
    this.code,
    this.uuid,
  });

  factory SendcodeEntity.fromJson(Map<String, dynamic> json) => _$SendcodeEntityFromJson(json);

  Map<String, dynamic> toJson() => _$SendcodeEntityToJson(this);

  @override
  String toString() {
    return jsonEncode(this);
  }
}